git clone https://ghproxy.net/https://github.com/THUDM/ChatGLM3.git

cd ChatGLM3

pip install -r requirements.txt

## pip cacha 更改地址
# pip.config
# cache_dir = /data/pipcache

## docker image 更改地址
# /etc/docker/daemon.json
# "data-root": "/data/docker"

### 模型下载地址
### /data/model/ZhipuAI/chatglm3-6b

curl -X POST http://localhost:8000/v1/chat/completions \
    -H 'accept:application/json' \
    -H 'Content-Type: application/json' \
    -d '{
        "messages":[
            {"role":"system", "content": "You are a helpful assistant."},
            {"role":"user", "content": "李白代表作"}
        ],
        "model": "chatglm3-6b"}'
